#include "ringbuffer.h"

using namespace sjl;
int main(int argc, char const *argv[])
{
    char test[200];
    char test1[300] = {0};
    for (size_t i = 0; i < 200; i++) { test[i] = i + 1; }

    ringbuffer buff(100);
    buff.put(test, 50);
    buff.put(test, 50);
    buff.get(test1, 80);
    buff.put(test, 200);
    buff.get(&test1[100], 200);

    return 0;
}
